package org.example.backend.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.time.LocalDate;

@Data
public class TicketOrderDTO {
    @NotNull(message = "门票ID不能为空")
    private Long ticketId;
    
    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须大于0")
    private Integer quantity;
    
    @NotNull(message = "游玩日期不能为空")
    private LocalDate visitDate;
} 